import React, { Component } from "react"
// import qs from "querystringify"
// 路由 search 传参 */
export default class message extends Component {
  render() {
    console.log(this.props)
    const { id } = this.props.location.state || {}
    // 路由 state 传参 路径没提示 刷新不丢失

    // const { search } = this.props.location
    // const { id } = qs.parse(search.slice(1))
    // 路由 search 传参

    // const { id } = this.props.match.params
    // 路由 params 传参

    return <div>home-----message----id:{id}</div>
  }
}
